import request from '@/http/request'
// 商户列表
export const $getMchList = (params:any) => {
    return request.request({
      url: '/api/mchInfo',
      method: 'get',
      params: params
    })
  }
//   商户图片更新  /api/mchInfo/updateImage
export const $updateMchImage = (params:any) => {
    return request.request({
      url: '/api/mchInfo/updateImage',
      method: 'post',
      data: params
    })
  }

//  精选商户置顶  /api/mchInfo/topMch
export const $topMch = (params:any) => {
    return request.request({
      url: '/api/mchInfo/topMch',
      method: 'post',
      data: params
    })
  }


  // 商户间联号
  export function $mchChannel(data) {
    return request.request({
      url: '/api/mchChannel/list',
      method: 'post',
      data
    })
  }

// 商户详情

export function $apiMchInfoDetail(data) {
  return request.request({
    url: '/api/mchInfo/detail',
    method: 'post',
    data
  })
}

// 请求后传入的文件
  // /api/mchInfo/import
  export function $apiMchInfoImport(ossFileUrl) {  
    return request.request({
      url: '/api/mchInfo/import',
      method: 'post',
      data: { ossFileUrl : ossFileUrl }
    })
  }

  // 渠道信息
  // /api/mchChannel/list
  export function $apiMchChannelList(mchNo) {  
    return request.request({
      url: '/api/mchChannel/list',
      method: 'post',
      data: mchNo
    })
  }
// 商户修改
  export function $apiMchInfoUpdateProcessMch(data) {  
    return request.request({
      url: '/api/mchInfo/updateProcessMch',
      method: 'post',
      data: data
    })
  }

 